package com.liuyang.second.concurrency.chapter6;

public class ReadWritLockClient {
    public static void main(String[] args) {
        final SharedData sharedData = new SharedData(10);
        new ReaderWorker(sharedData).start();
        new ReaderWorker(sharedData).start();
        new ReaderWorker(sharedData).start();
        new ReaderWorker(sharedData).start();
        new ReaderWorker(sharedData).start();
        new WriterWroker(sharedData,"qwertyuiopasdfg").start();

        new WriterWroker(sharedData,"QWERTYUOPOPS").start();
    }
}
